package AAA.AAA;

import AAA.user;
import AAA.vip;
import BBB.service.OrderService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test {
    @Test
    public void test(){
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("spring.xml");
        vip vip = applicationContext.getBean("vip", vip.class);
        user user = applicationContext.getBean("userbean", user.class);
        System.out.println(vip);
        System.out.println(user);

    }

    @Test
    public void test1(){
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("spring.xml");
        OrderService orderService = applicationContext.getBean("orderService", OrderService.class);
        orderService.generate();
    }

}
